package com.chuqiyun.authorization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * (Payment)表实体类
 *
 * @author mryunqi
 * @since 2023-04-22 01:38:45
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "Payment")
@Data
public class Payment extends Model<Payment> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //支付接口名称
    private String name;
    //别名
    private String alias;
    //状态（0=启用，1=禁止）
    private Integer state;
    //appid
    private String appid;
    //密钥
    private String privateKey;
    //公钥
    private String publicKey;
    //回调地址
    private String notifyUrl;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    }

